﻿using FocusCareer.Entities;
using System;

namespace FoucsCareer.EntitiyMap.Dapper
{
    public class AuditEntityMap<TEntity> : EntityBaseMap<TEntity>
        where TEntity : AuditEntityBase
    {
        public AuditEntityMap()
        {
            Map(p => p.CreationTime).ToColumn("creation_time");
            Map(p => p.CreatorUserId).ToColumn("creator_userid");
            Map(p => p.LastModificationTime).ToColumn("last_modification_time");
            Map(p => p.LastModifierUserId).ToColumn("last_modifier_userid");
        }
    }
}
